package com.neusoft.bigdata.mysql.nosql;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

import net.rubyeye.xmemcached.MemcachedClient;
import net.rubyeye.xmemcached.XMemcachedClient;
import net.rubyeye.xmemcached.exception.MemcachedException;

/**
 * @author lihzh
 * @date 2013-3-12 下午12:07:22
 */
public class MySQLMemcachedAPI {

	/**
	 * @param args
	 * @author lihzh(OneCoder)
	 * @blog http://www.coderli.com
	 * @throws MemcachedException
	 * @throws InterruptedException
	 * @throws TimeoutException
	 * @throws IOException
	 * @date 2013-3-12 下午12:07:41
	 */
	public static void main(String[] args) throws TimeoutException, InterruptedException, MemcachedException, IOException {
//		MemcachedClient client = new XMemcachedClient("10.4.44.208", 11211);
//		// store a value for one hour(synchronously).
//		client.set("key", 3600, "onecoder");
//		// Retrieve a value.(synchronously).
//		Object someObject = client.get("key");
//		// Retrieve a value.(synchronously),operation timeout two seconds.
//		someObject = client.get("key", 2000);
//		System.out.println(someObject);
		System.out.println(1%2);
	}

}
